package com.honglang.common.tools;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class HtmlTagSearch {
	public static void findHtmlTag(String html){ 
	  Pattern p= Pattern.compile("[.]*(<.+?>)[.]*",Pattern.DOTALL);
	  Matcher m=p.matcher(html);
	  m.matches();
		  int len=m.groupCount();
		  System.out.println(m.groupCount());
		  for(int i=0;i<=len;i++){
			  System.out.println(m.group(i));
		  }
		  
	  System.out.println("------------------------------------");
	  m.reset();
	  while(m.find()){
		  
	    
	    	System.out.println(m.group(1));
	    	System.out.println(m.start(1));
	  }
	     
	  }
	
}
